package com.kaili.basic.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;

/**
 * Created by linjian on 19-8-5.
 */
@Data
@ApiModel(description = "角色权限管理-新增Dto")
public class MdmRoleAddDto {

    @NotEmpty(message = "角色编号不能为空")
    @ApiModelProperty("角色编号")
    private String roleCode;

    @NotEmpty(message = "角色名称不能为空")
    @Size(max = 20,message = "角色名称最长为20位")
    @ApiModelProperty("角色名称")
    private String roleName;
}
